Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing Extensions and Drivers /
Chapter 4 - Printing Messages / Printing Messages Reference
Printing Messages / PostScript Imaging Messages


GXPostScriptResetPrinter

QuickDraw GX sends the GXPostScriptResetPrinter message when the printer needs to be reset. You can override the GXPostScriptResetPrinter message to alter the action taken when a printer is reset. Your override of the GXPostScriptResetPrinter message must match the following formal declaration:

OSErr MyPostScriptResetPrinter (void);
function result
An error code. The value noErr indicates that the operation was successful.
DESCRIPTION
QuickDraw GX calls the GXPostScriptResetPrinter message when the GXPostScriptQueryPrinter message indicates that a device requires resetting. The GXPostScriptQueryPrinter message forces a printer to restart itself, resetting it to a rebooted state.

You can override this message to replace the code that is used to reset the printer or to perform other actions when a printer is reset. The default implementation of this message reboots the printer: it first sends the GXPostScriptExitServer message and then downloads PostScript code that executes the quit operation in the systemdict dictionary.

SPECIAL CONSIDERATIONS
You almost always forward the GXPostScriptResetPrinter message and then add your own reset actions. If you do totally override this message, you must make sure that your override reboots the printer state.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found,
or there was not enough memory to load it.
gxPrUserAbortErrThe user has canceled printing.
The default implementation of the GXPostScriptResetPrinter message can also return the communications errors that are listed in Table 4-2 on page 4-42.

SEE ALSO
The GXPostScriptExitServer message is described in the next section.

The GXPostScriptQueryPrinter message is described on page 4-101.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help